﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/EmployeeUI/EmployeeMaster.Master"
    AutoEventWireup="true" CodeBehind="MessageUI.aspx.cs" Inherits="HRM.UI.EmployeeUI.Profile.MessageUI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/Message/DeleteMsgCsscss.css" rel="stylesheet" type="text/css" />
    <table width="100%">
        <tr>
            <td>
                Total Unread Message:<blink><asp:Label runat="server" ID="unreadLbl" Font-Bold="True" 
                    ForeColor="Red" CssClass="unread"></asp:Label></blink>
            </td>
        </tr>
    </table>
    <div align="center">
        <asp:Label runat="server" ID="msgLbl"></asp:Label>
    </div>
    <div>
        <a href="../../../UI/EmployeeUI/Profile/SentMessage.aspx?new=comp">
            <input type="button" id="btnCompose" runat="server" class="btnCompose" />
        </a>
        <input type="button" id="btnDelete" runat="server" class="btnDelete" value="" onserverclick="DeleteMessage"/>
    </div>
    <div align="center">
        <asp:Label runat="server" ID="loadmsglbl"></asp:Label></div>
    <asp:GridView runat="server" ID="messageGdv" Width="100%" BorderColor="#3366CC" BorderStyle="None"
        BorderWidth="1px" CellPadding="4" OnPageIndexChanging="messageGdv_PageIndexChanging"
        AutoGenerateColumns="False" AllowPaging="True" PageSize="10" CssClass="GridviewStyle">
        <Columns>
            <asp:TemplateField Visible="False">
                <ItemTemplate>
                    <asp:Label ID="lblId" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="check" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="SenderName" HeaderText="Message Sender " />
            <asp:HyperLinkField DataTextField="Subject" HeaderText="Title" DataNavigateUrlFormatString="../../../UI/EmployeeUI/Profile/ReadMessage.aspx?msgId={0}"
                DataNavigateUrlFields="Id" ControlStyle-Font-Underline="False">
                <ControlStyle Font-Underline="False"></ControlStyle>
            </asp:HyperLinkField>
            <asp:BoundField DataField="Date" HeaderText="Date" />
            <asp:BoundField DataField="Flag" HeaderText="Status" />
        </Columns>
        <FooterStyle CssClass="GridViewFooterStyle" />
        <HeaderStyle Font-Bold="True" CssClass="GridViewHeaderStyle" />
        <PagerStyle CssClass="GridViewFooterStyle" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
</asp:Content>
